// 自动生成模板OmsOrderItem
package biz

import "github.com/go-kratos/kratos/v2/log"

// omsOrderItem表 结构体  OmsOrderItem
type OmsOrderItem struct {
	Id                *int     `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                          //id
	OrderId           *int     `json:"orderId" form:"orderId" gorm:"comment:order_id;column:order_id;size:19;"`                               //order_id
	OrderSn           *string  `json:"orderSn" form:"orderSn" gorm:"comment:order_sn;column:order_sn;"`                                       //order_sn
	SpuId             *int     `json:"spuId" form:"spuId" gorm:"comment:spu_id;column:spu_id;size:19;"`                                       //spu_id
	SpuName           *string  `json:"spuName" form:"spuName" gorm:"comment:spu_name;column:spu_name;size:255;"`                              //spu_name
	SpuPic            *string  `json:"spuPic" form:"spuPic" gorm:"comment:spu_pic;column:spu_pic;size:500;"`                                  //spu_pic
	SpuBrand          *string  `json:"spuBrand" form:"spuBrand" gorm:"comment:品牌;column:spu_brand;size:200;"`                                 //品牌
	CategoryId        *int     `json:"categoryId" form:"categoryId" gorm:"comment:商品分类id;column:category_id;size:19;"`                        //商品分类id
	SkuId             *int     `json:"skuId" form:"skuId" gorm:"comment:商品sku编号;column:sku_id;size:19;"`                                      //商品sku编号
	SkuName           *string  `json:"skuName" form:"skuName" gorm:"comment:商品sku名字;column:sku_name;size:255;"`                               //商品sku名字
	SkuPic            *string  `json:"skuPic" form:"skuPic" gorm:"comment:商品sku图片;column:sku_pic;size:500;"`                                  //商品sku图片
	SkuPrice          *float64 `json:"skuPrice" form:"skuPrice" gorm:"comment:商品sku价格;column:sku_price;size:18;"`                             //商品sku价格
	SkuQuantity       *int     `json:"skuQuantity" form:"skuQuantity" gorm:"comment:商品购买的数量;column:sku_quantity;size:10;"`                    //商品购买的数量
	SkuAttrsVals      *string  `json:"skuAttrsVals" form:"skuAttrsVals" gorm:"comment:商品销售属性组合（JSON）;column:sku_attrs_vals;size:500;"`        //商品销售属性组合（JSON）
	PromotionAmount   *float64 `json:"promotionAmount" form:"promotionAmount" gorm:"comment:商品促销分解金额;column:promotion_amount;size:18;"`       //商品促销分解金额
	CouponAmount      *float64 `json:"couponAmount" form:"couponAmount" gorm:"comment:优惠券优惠分解金额;column:coupon_amount;size:18;"`               //优惠券优惠分解金额
	IntegrationAmount *float64 `json:"integrationAmount" form:"integrationAmount" gorm:"comment:积分优惠分解金额;column:integration_amount;size:18;"` //积分优惠分解金额
	RealAmount        *float64 `json:"realAmount" form:"realAmount" gorm:"comment:该商品经过优惠后的分解金额;column:real_amount;size:18;"`                 //该商品经过优惠后的分解金额
	GiftIntegration   *int     `json:"giftIntegration" form:"giftIntegration" gorm:"comment:赠送积分;column:gift_integration;size:10;"`           //赠送积分
	GiftGrowth        *int     `json:"giftGrowth" form:"giftGrowth" gorm:"comment:赠送成长值;column:gift_growth;size:10;"`                         //赠送成长值
}

// TableName omsOrderItem表 OmsOrderItem自定义表名 oms_order_item
func (OmsOrderItem) TableName() string {
	return "oms_order_item"
}

type OmsOrderItemRepo interface {
}

type OmsOrderItemUsecase struct {
	repo OmsOrderItemRepo
	log  *log.Helper
}

func NewOmsOrderItemUsecase(repo GreeterRepo, logger log.Logger) *OmsOrderItemUsecase {
	return &OmsOrderItemUsecase{repo: repo, log: log.NewHelper(logger)}
}
